<template>
  <elem v-if="funCode" :configs="funCode"></elem>
</template>

<script>
  import './router.js'
  import '@/components/confirmInfo/router'

  export default {
    name: 'index',

    data () {
      return {
        funCode: ''
      }
    },

    created () {
      var x  = localStorage.getItem('WX_UID') || ''
      // if(!x){
      //   var curlocat = window.location;
      //   localStorage.setItem('llrouterUrl',curlocat);
      //
      //   // this.$router.push({
      //   //   path:'/auth'
      //   // })
      //
      //
      // }



      if (this.$route.query.funCode) {
        if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
          this.funCode = ''
          this.funCode = this.$route.query.funCode+''

        }else{
          this.funCode = this.$route.query.funCode
        }

      }



    }
  }
</script>

<style scoped>

</style>
